From: Keir Fraser Date: Wed, 29 Jul 2009 08:19:30 +0000 (+0100) Subject: xend: pci: fix a typo in do_Dstate_transition X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13541 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=d0c233bbf877e7424fc9a52a69a8af155572bf2f;p=xen.git xend: pci: fix a typo in do_Dstate_transition Signed-off-by: Dexuan Cui --- diff --git a/tools/python/xen/util/pci.py b/tools/python/xen/util/pci.py index 55077e5c1b..3ca755c67b 100644 --- a/tools/python/xen/util/pci.py +++ b/tools/python/xen/util/pci.py @@ -730,7 +730,7 @@ class PciDevice: # devices transitioning from D3hot to D0 because of # PowerState commands do not perform an internal reset. pm_ctl = self.pci_conf_read32(pos + PCI_PM_CTRL) - if (pm_ctl & PCI_PM_CTRL_NO_SOFT_RESET) == 1: + if (pm_ctl & PCI_PM_CTRL_NO_SOFT_RESET) == PCI_PM_CTRL_NO_SOFT_RESET: return False (pci_list, cfg_list) = save_pci_conf_space([self.name])